package com.ssi.mrms.model;

import java.io.Serializable;
import java.util.Date;

import org.apache.struts2.json.annotations.JSON;

import com.opensymphony.xwork2.conversion.annotations.TypeConversion;

public class BaseModel implements Serializable {

	private static final long serialVersionUID = -4827588647883014571L;
	private String createUser;
	private Date createDate;
	private String updateUser;
	private Date updateDate;
	private String active;

	public BaseModel() {
		this.createDate = new Date();
		this.updateDate = new Date();
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	@JSON(format = "dd/MM/yyyy")
	public Date getCreateDate() {
		return createDate;
	}
	@TypeConversion(converter = "com.ssi.mrms.converter.StringToDateConverter")
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	@JSON(format = "dd/MM/yyyy")
	public Date getUpdateDate() {
		return updateDate;
	}
	@TypeConversion(converter = "com.ssi.mrms.converter.StringToDateConverter")
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getActive() {
		return active;
	}

	public void setActive(String active) {
		this.active = active;
	}

}
